package controller

import (
	"github.com/kataras/iris"

	"im/dao"
)

type ChannelsController struct {
	Base
	Ctx iris.Context
}

// swagger:route GET /systems/channels systems get-systems-channels
//
// 获取文章类型列表
//
// 获取文章类型列表
//
//   Security:
//   - jwt_key:
//   Responses:
//     200:GetPosts
func (c *ChannelsController) GetChannels() {
	list := dao.NewChannels().List()
	c.SendSmile(list)
}
